<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/12/14
 * Time: 13:37
 */

namespace app\adminapiv3\controller\platform_manage;

//代理
use app\adminapiv3\controller\BaseController;

class ServerProxyController extends BaseController
{
    /**
     * @name 获取代理设置
     * @author wx
     * @date 2019/12/14 13:38
     */
    public function get()
    {
        $server = new \app\adminapiv3\service\platform_manage\ServerProxyService();
        $list = $server->toDo('getProxy',[]);

        return $this->jsonOutPut($list);
    }

    /**
     * @name 更改代理设置
     * @author wx
     * @date 2019/12/14 13:38
     */
    public function modify()
    {
        $ip = $this->filterInput('ip*');
        $server = new \app\adminapiv3\service\platform_manage\ServerProxyService();
        $server->toDo('modifyCommon',[$ip]);

        return $this->jsonOutPut();
    }


}